import React,{Component} from 'react';
import axios from 'axios';

class MovieSearch extends Component{
	constructor(props){
		super(props);
		this.state={
			title:'搜索结果',
			list:[]
		}
	}

	componentWillMount(){
		var url="/mock/movie/index_new.json";
		console.log(this.props);
		axios(url).then((res)=>{
			console.log(res);
			this.list=res.data.subjects;
		});
	}

	render(){
		return <div class="container">
			   {this.state.title}				
		</div>
	}
}

export default MovieSearch;